package com.example.bookstore.dao

import com.example.bookstore.entity.BaseEntity
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.repository.NoRepositoryBean
import org.springframework.transaction.annotation.Transactional

/**
 * Created by IntelliJ IDEA.
 * User: lvshe
 * Date: 2019/8/3
 * Time: 23:22
 */
@Transactional
@NoRepositoryBean
interface BaseDao<T : BaseEntity> : JpaRepository<T, String>